<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,domain.entity.SysMenu"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<%
	ServletContext context = pageContext.getServletContext();
	List<SysMenu> sysMenus = (List<SysMenu>) context.getAttribute("menus");
	for (SysMenu sysMenu : sysMenus) {
		String sel = "";
		if (context.getAttribute("TopMenuID").toString() == sysMenu.getMenuId().toString()) {
			sel = "class=sel";
		}
%>
<a href="<%=basePath%>/home?id=<%=sysMenu.getMenuId().toString()%>"
	id="menu_<%=sysMenu.getMenuId().toString()%>" <%=sel%>><%=sysMenu.getName()%></a>
<%
	}
%>
